package com.tph.controller;

import com.tph.entity.User;
import com.tph.service.intf.UserService;
import com.tph.vo.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName UserController
 * @Description TODO
 * @Author LiHao
 * @Date 2023/1/9 16:08
 * @Version 1.0
 */
@RestController
@RequestMapping("/server/user/")
@Api(tags = "测试项目")
public class UserController {
    @Resource
    private UserService service;

    @GetMapping("all.do")
    public R queryAll() {
        return service.queryAll();
    }
}
